package com.qf.joint.service.impl;

import com.qf.joint.dao.AddressDao;
import com.qf.joint.pojo.Address;
import com.qf.joint.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Zhy
 * Date on 2020/9/12  22:40
 * @description
 */
@Service("addressService")
public class AddressServiceImpl implements AddressService {
    @Autowired(required = false)
    private AddressDao addressDao;
    @Override
    public int selectCount() {
        return 0;
    }

    @Override
    public List<Address> selectByAid(int aid) {
        return addressDao.selectByAid(aid);
    }

    @Override
    public List<Address> selectAll() {
        return addressDao.selectAll();
    }

    @Override
    public List<Address> selectByCategory(int category) {
        return null;
    }

    @Override
    public List<Address> selectL2ByAid(int aid) {
        return null;
    }

    @Override
    public int insertOne(Address address) {
        return addressDao.insertOne(address);
    }

    @Override
    public int updateOne(Address address) {
        return addressDao.updateOne(address);
    }

    @Override
    public int deleteOne(int aid) {
        return addressDao.deleteOne(aid);
    }
}
